<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name='viewport' content='width=device-width, initial-scale=1.0'>
        <title>Title</title>
    </head>
    <body>
        <div id='app'>
            <zhuban>
                <div>显卡</div>
                <div>cpu</div>
                <div>内存</div>
                <div>声卡</div>
            </zhuban>
        </div>
        <script src="../js/vue.js"></script>
        <script>
            let zhuban = {
                template: `<div>
                            <h2>我是主板</h2>
                            <slot></slot>
                           </div>`
            }
            let vm = new Vue({
                el: '#app',
                data: {},
                components: {
                    zhuban
                }
            });
        </script>
    </body>
</html>